layui.config({
    base : "js/"
}).use(['form','layer','jquery'],function() {
    var form = layui.form,
        layer = parent.layer === undefined ? layui.layer : parent.layer,
        $ = layui.jquery;
    $(".layui-btn-add").click(function(){
        var index = layui.layer.open({
            title : "添加模型",
            type : 2,
            maxmin: true,
            scrollbar: true,
            area: ['500px', '80%'],
            content : ["<?= yii\helpers\Url::to(['create']); ?>"],

        });
    });

});